import 'package:auto_orientation/auto_orientation.dart';
import 'package:bxultimate/data/request/user_request.dart';
import 'package:get/get.dart';

import 'state.dart';

class ElectronIdcardController extends GetxController {
  final ElectronIdcardState state = ElectronIdcardState();


  @override
  void onInit() {
    // TODO: implement onInit
    super.onInit();

    AutoOrientation.landscapeRightMode();

    getData();
  }



  getData() async {
    var data = await UserRequest.generateElectronicIdcard("141082199505280018");
    state.electronIdcard = data;
  }

  void back() {
    AutoOrientation.portraitUpMode();
    Get.back();
  }
}
